<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-for绑定key</title>
</head>
<body>
    <div id="app">
        <ul>
            <li v-for="item in letters" :key="item">{{item}}</li>
        </ul>
    </div>
</body>
    <script src="../js/vue.js"></script>
    <script>
        const app = new Vue({
            el: '#app',
            data: {
                letters: [
                    'A',
                    'B',
                    'C',
                    'D',
                    'E',
                ],
            },
            methods: {

            }
        })
    </script>
</html>